﻿using Microsoft.AspNetCore.Mvc;

using System.ComponentModel.DataAnnotations;
using System.Threading.Tasks;
using Volo.Abp.AspNetCore.Mvc;

namespace SMARTHOTEL
{
    [Route("api/alipay")]
    public class AlipayController : AbpController
    {
        //private readonly AlipayPaymentService _paymentService;

        //public AlipayController(AlipayPaymentService paymentService)
        //{
        //    _paymentService = paymentService;
        //}

        //[HttpPost("payment")]
        //public async Task<IActionResult> CreatePayment(
        //    [FromBody] CreatePaymentRequest request)
        //{
        //    var formHtml = await _paymentService.CreatePaymentAsync(
        //        request.OrderNumber,
        //        request.Amount,
        //        request.Subject);

        //    return Content(formHtml, "text/html");
        //}

        //public class CreatePaymentRequest
        //{
        //    [Required]
        //    public string OrderNumber { get; set; }

        //    [Range(0.01, 100000)]
        //    public decimal Amount { get; set; }

        //    [Required]
        //    [StringLength(256)]
        //    public string Subject { get; set; }
        //}
    }
}
